package br.com.sovi.gwt.client.controleunitario;

import br.com.sovi.gwt.client.entity.ControleUnitarioPoint;

import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.maps.client.geocode.Placemark;
import com.google.gwt.maps.client.geom.LatLng;
import com.google.gwt.maps.client.overlay.Marker;
import com.google.gwt.maps.client.overlay.MarkerOptions;

public class ControleUnitarioMarker extends Marker {

	private ControleUnitarioPoint controleUnitarioPoint;

	private JsArray<Placemark> jsArray;

	public ControleUnitarioMarker(ControleUnitarioPoint controleUnitarioPoint) {
		super(LatLng.newInstance(controleUnitarioPoint.getPoint().getLatitude(), controleUnitarioPoint.getPoint()
				.getLongitude()));

		this.controleUnitarioPoint = controleUnitarioPoint;
	}

	public ControleUnitarioMarker(ControleUnitarioPoint controleUnitarioPoint, JsArray<Placemark> jsArray) {
		super(LatLng.newInstance(controleUnitarioPoint.getPoint().getLatitude(), controleUnitarioPoint.getPoint()
				.getLongitude()));
		this.controleUnitarioPoint = controleUnitarioPoint;
		this.jsArray = jsArray;
	}

	public ControleUnitarioMarker(ControleUnitarioPoint controleUnitarioPoint,
			JsArray<Placemark> jsArray, MarkerOptions options) {
		super(LatLng.newInstance(controleUnitarioPoint.getPoint().getLatitude(), controleUnitarioPoint.getPoint()
				.getLongitude()), options);
		this.controleUnitarioPoint = controleUnitarioPoint;
		this.jsArray = jsArray;
	}

	public ControleUnitarioMarker(LatLng point) {
		super(point);
	}

	public ControleUnitarioMarker(JavaScriptObject jsoPeer) {
		super(jsoPeer);
	}

	public ControleUnitarioMarker(LatLng point, MarkerOptions options) {
		super(point, options);
	}

	public ControleUnitarioPoint getControleUnitarioPoint() {
		return controleUnitarioPoint;
	}

	public void setControleUnitarioPoint(ControleUnitarioPoint controleUnitarioPoint) {
		this.controleUnitarioPoint = controleUnitarioPoint;
	}

	public JsArray<Placemark> getJsArray() {
		return jsArray;
	}

	public void setJsArray(JsArray<Placemark> jsArray) {
		this.jsArray = jsArray;
	}

}
